import { guID } from "@/common.js" 
export const cusLayoutForm = [
  {
    id: guID(),
    isShow: true,
    type: 'divide',
    /*标题*/
    label: "分割线",
    labelTextAlign: 0, // 0: 左对齐  1：居中   2：右对齐
    isLabelWidth: true,
    labelWidth: 90,
    unit: '', // 单位
    /*表单*/
    width: "",
    defaultValue: "",
    options: [],
    placeholder: "",
    customClass: "",
    disabled: false,
    clearable: false,
    maxlength: 500,
    showWordLimit: false,
    /*校验*/
    required: false,
    validator: '() => {}',
    regExp: '/.*/',
    errmsg: '',
    /*事件*/
    onChange: '(e) => {}',
    onFocus: '(e) => {}',
    onBlur: '(e) => {}'
  },
  {
    id: guID(),
    isShow: true,
    type: 'split',
    /*标题*/
    label: "栅格布局",
    labelTextAlign: 0, // 0: 左对齐  1：居中   2：右对齐
    isLabelWidth: true,
    labelWidth: 90,
    unit: '', // 单位
    /*表单*/
    width: "",
    defaultValue: "",
    options: [],
    placeholder: "",
    customClass: "",
    disabled: false,
    clearable: false,
    maxlength: 500,
    showWordLimit: false,
    children: [
      {id: guID(),span: 50,isShow: true},
      {id: guID(),span: 50,isShow: true},
    ],
    /*校验*/
    required: false,
    validator: '() => {}',
    regExp: '/.*/',
    errmsg: '',
    /*事件*/
    onChange: '(e) => {}',
    onFocus: '(e) => {}',
    onBlur: '(e) => {}'
  },
  {
    id: guID(),
    isShow: true,
    type: 'text',
    /*标题*/
    label: "纯文本",
    labelTextAlign: 0, // 0: 左对齐  1：居中   2：右对齐
    isLabelWidth: true,
    labelWidth: 90,
    fontWeight: '400',
    fontSize: 14,
    color:'#515a6e',
    paddingTop: 0,
    paddingRight: 0,
    paddingBottom: 0,
    paddingLeft: 0,
    unit: '', // 单位
    isShowSpread: false,
    isSpread: true,
    _isSpread: true,
    spreadField: '', // 需要控制的展开收起字段
    /*表单*/
    width: "",
    defaultValue: "",
    options: [],
    placeholder: "",
    customClass: "",
    disabled: false,
    clearable: false,
    maxlength: 500,
    showWordLimit: false,
    children: [],
    /*校验*/
    required: false,
    validator: '() => {}',
    regExp: '/.*/',
    errmsg: '',
    /*事件*/
    onChange: '(e) => {}',
    onFocus: '(e) => {}',
    onBlur: '(e) => {}'
  },
]